Skip to main content
Version: 4.0.0

getBlockTransactionCount

Retrieves the count of transactions within a block.

Usage

tronWeb.trx.getBlockTransactionCount()

Parameters

ParametersParameter DescriptionData Type
Block HeightThe height of the block you wish to obtain transaction count data for.Integer/string

Return

Object

Example

tronWeb.trx.getBlockTransactionCount(16012520).then(console.log);
>35
tronWeb.trx.getBlockTransactionCount("0000000000f454e84edbee2365fbf1bf34bc98283ded06e68311bb6e5bea3cf6").then(console.log);
>35